<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Location</title>

</head>
<body>
	<h1 id="random"></h1>
	<input type="button" value="单击我,刷新页面" onclick="refresh()">
</body>
	<script>
		document.getElementById('random').innerHTML = Math.random();
		function refresh(){
			//刷新页面
			location.reload();
		}
	</script>
</html>